home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2354 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  780 b 

  1. Path: news.bridge.net!news
  2. From: David Byrden <100101.2547@compuserve.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: overloading []
  5. Date: 17 Jan 1996 07:54:17 GMT
  6. Organization: self-employed
  7. Message-ID: <4di9v9$8k6@news.bridge.net>
  8. References: <4dgjbl$6i3@news1.goodnet.com> <4dh86s$bfi@locutus.rchland.ibm.com>
  9. NNTP-Posting-Host: ppp-mia1-60.bridge.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
  14.  
  15.  
  16. >> No, you could do:
  17.  
  18. >>     foo& f( *new foo );
  19. >>  later on:
  20.  
  21. >>     delete &f;
  22.  
  23.  
  24. Phil, I believe the C++ standards committee have decided to play safe by 
  25. declaring this kind of code as "ill-formed". In other words, a 'perfect' 
  26. C++ compiler need not behave as you want here.
  27.  
  28.    David
  29.  
  30.  
  31.